<?php
use app\models\ActivityApply;
use app\models\Comment;
use app\utils\BaseUtils;
use yii\helpers\Html;
use yii\helpers\Url;

/* @var $this \yii\web\View */
/* @var $user \app\models\User */

\app\assets\MuiImageAsset::register($this);

?>

<div class="mui-content">
    <ul class="mui-table-view company-head mt0 mb15">
        <li class="mui-table-view-cell mui-media">
            <a href="javascript:;">
                <img class="mui-media-object mui-pull-left" src="<?= $user->getAvatar(); ?>">
                <div class="mui-media-body">
                    <?= Html::encode($user->uname); ?>
                    <p class="mui-ellipsis"><?= $user->profile->province; ?></p>
                    <p class="mui-ellipsis"><?= "{$user->profile->industry}/{$user->profile->company_scale}"; ?></p>
                </div>
            </a>
        </li>
    </ul>
    <div class="section-view mb15">
        <div class="tab-row">
            <div class="mui-segmented-control mui-segmented-control-inverted mui-segmented-control-primary">
                <a class="mui-control-item mui-active" href="#item1">公司主页</a>

            </div>
        </div>
        <div id="item1" class="mui-control-content mui-active">
            <div class="txt-con">
                <h4>产品介绍</h4>
                <?= BaseUtils::arrayToImage($user->profile->getThumbsByFiled('product_images')); ?>
            </div>
        </div>
    </div>

    <div class="section-view mb15">

        <div class="txt-con">
            <h4>公司简介</h4>
            <a href="" class="btn-more">
                <span class="mui-icon mui-icon-arrowdown"></span>
                <span class="mui-icon mui-icon-arrowup"></span>
            </a>
            <div class="con txt-indent con-more">
                <p><?= Html::encode($user->profile->experience1); ?></p>
            </div>
        </div>
    </div>

    <div class="section-view mb15">

        <div class="txt-con">
            <h4>
                详情介绍
            </h4>
            <a href="" class="btn-more">
                <span class="mui-icon mui-icon-arrowdown"></span>
                <span class="mui-icon mui-icon-arrowup"></span>

            </a>
            <div class="con txt-indent con-more">
                <p><?= Html::encode($user->profile->experience2); ?></p>
            </div>
        </div>
    </div>

    <div class="section-view mb15">

        <div class="txt-con">
            <h4>
                风貌展示
            </h4>

            <div class="con ">
                <div class="previewimageImg">
                    <?= BaseUtils::arrayToImage($user->profile->getThumbsByFiled('style_images')); ?>
                </div>
            </div>
        </div>
    </div>

    <div class="section-view mb15">

        <div class="txt-con">
            <h4>公司地址</h4>

            <div class="con ">
                <p><?= Html::encode($user->profile->address); ?></p>
            </div>
        </div>
    </div>
